package com.kuaiditu.assistant.api.xz_api;

import com.alibaba.fastjson.JSON;

import java.util.List;

/**
 * Created by Eenie on 2017/9/14.
 * Email: eeniework@gmail.com
 * Des:
 */

public class YTBaseResponse {


    /**
     * obj : {"bothCount":2,"signCount":1,"collectCount":0,"questionCount":0,"collectAmount":0}
     * cmd : 8
     * code : 1000
     * prompt :
     */

    private String obj;
    private List<Object> lst;
    private int cmd;
    private int code;
    private String prompt;
    private Object extMap;



    public Object getObj(Class clz) {
        return JSON.parseObject(this.obj, clz);
    }

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public int getCmd() {
        return cmd;
    }

    public void setCmd(int cmd) {
        this.cmd = cmd;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getPrompt() {
        return prompt;
    }

    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }


    public List<Object> getLst() {
        return lst;
    }

    public void setLst(List<Object> lst) {
        this.lst = lst;
    }

    public Object getExtMap() {
        return extMap;
    }

    public void setExtMap(Object extMap) {
        this.extMap = extMap;
    }



    public boolean isSuccess() {
        return this.code == 1000;
    }




}
